package controllers;


import models.*;

public class Security extends Secure.Security {

    public static boolean authenticate(String username, String password) {
        return Usuario.conectar(username, password) != null;
    }

    public static void onAuthenticated() {
        redirect("/");
    }

    public static void onDisconnected() {
        redirect("/");
    }

    public static void disconnect() {
        redirect("/logout");
    }
}